import App from './App'

import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

import {
	parseTime
} from './api/timeUtil.js'

Vue.prototype.parseTime = parseTime

Vue.prototype.getRichContent = function(c1){
	
	c1 = c1.replace(/class="" src=/g, function(match, p1) {
	    return `class="rich-img1" src=`;
	});
	c1 = c1.replace(/<table/g, function(match, p1) {
	    return `<table class="rich-table1"`;
	});
	
	return c1
}


Vue.prototype.showSimpleMessage = function(title){
	uni.showToast({
		title:title,
		icon:'none'
	})
}



// #ifndef VUE3
import Vue from 'vue'

import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif